Tamara\Wp\Plugin\TamaraCheckout D

Total Complexity 178
Dependencies 17
Dependents 3
Total lines 1,502
Lines of code 809
Logical lines of code 357
Comment lines 430
Methods 75
Properties 5

Methods 75

Method Rating Maintainability Complexity Lines of code
tamaraRefundPayment()
A
41 11 55
updateTamaraCheckoutDataToOrder()
A
49 8 30
handleTamaraApi()
A
48 7 36
enqueueAdminSettingScripts()
S
58 8 13
updatePayByInstalmentSettingUrl()
S
65 7 7
authoriseOrder()
S
58 6 15
forceRequireBillingPhone()
S
60 6 12
tamaraProductPopupWidget()
S
54 5 20
getTotalToCalculate()
S
60 5 13
addTamaraWidgetScript()
S
50 3 41
registerTamaraCustomOrderStatuses()
S
43 1 65
registerServices()
S
57 4 18
adjustTamaraPaymentTypesOnCheckout()
S
58 4 15
handleTamaraCancelUrl()
S
53 3 23
handleTamaraFailureUrl()
S
53 3 23
initPlugin()
S
46 2 35
getTamaraOrderByWcOrderId()
S
56 3 19
tamaraAuthoriseHandler()
S
58 3 16
isProductPriceValid()
S
68 4 6
forceCaptureTamaraOrder()
S
51 2 28
updateOrderStatusAndAddOrderNote()
S
62 3 11
getTamaraAuthoriseFailedUrl()
S
58 2 16
isOrderTamaraApproved()
S
68 3 7
logMessage()
S
63 3 10
initInstanceWithConfig()
S
67 3 8
tamaraCheckoutParams()
S
60 2 15
getDisplayedProductPrice()
S
66 3 9
addTamaraAuthoriseFailedMessage()
S
68 3 6
addTamaraCustomOrderStatuses()
S
57 1 17
doAuthoriseOrderAction()
S
72 2 5
__construct()
S
70 2 6
getTamaraAuthoriseSuccessUrl()
S
72 2 6
activatePlugin()
S
70 2 6
checkWooCommerceExistence()
S
64 2 9
getAdminSettingLink()
S
66 2 8
showTamaraProductPopupWidget()
S
74 2 5
isRestRequest()
S
79 2 3
adjustBillingPhoneDescription()
S
68 2 7
getTamaraOrderId()
S
69 2 7
handleTamaraCronjob()
S
71 2 7
addRefundNote()
S
67 2 7
registerTamaraCronjob()
S
73 2 5
logMessageFilePath()
S
77 2 3
getWCTamaraGatewayPayByInstalmentsService()
S
80 1 3
isTamaraGatewayEnabled()
S
78 1 3
isPayByInstalmentsEnabled()
S
78 1 3
tamaraSuccessHtml()
S
63 1 9
isPayByLaterEnabled()
S
78 1 3
getTamaraPopupWidgetPosition()
S
79 1 3
calculateInstalmentPlan()
S
63 1 10
getWCTamaraGatewayService()
S
80 1 3
isForceBillingPhoneEnabled()
S
78 1 3
populateRestApiRequest()
S
77 1 4
setRestApiRequest()
S
81 1 3
getRestApiRequest()
S
82 1 3
getServiceView()
S
79 1 3
getService()
S
80 1 3
isCustomLogMessageEnabled()
S
78 1 3
getWCTamaraGatewayOptions()
S
79 1 3
isCronjobEnabled()
S
78 1 3
enqueueScripts()
S
69 1 6
preventOrderCancelAction()
S
71 1 6
getWCTamaraGatewayOptionKey()
S
80 1 3
onSaveSettings()
S
80 1 3
registerTamaraPaymentGateway()
S
76 1 4
noticeNonWooCommerce()
S
70 1 6
addSettingsLinks()
S
71 1 5
addCustomRewriteRules()
S
68 1 7
deactivatePlugin()
S
81 1 3
addCronInterval()
S
68 1 7
handleTamaraSuccessUrl()
S
71 1 6
unscheduleTamaraCronjob()
S
76 1 4
tamaraLoadTextDomain()
S
71 1 5
isOrderAuthorised()
S
78 1 3
removeTrailingSlashes()
S
79 1 3